package com.example.fontposition.pojo.po;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Data
@Document(indexName ="recommend")
public class PositionPO implements Serializable {
    @Id
    private Long id;
    @Field(type = FieldType.Long, analyzer = "ik_smart")
    private Long jobId;
    @Field(type = FieldType.Keyword, analyzer = "ik_smart")
    private String jobName;
    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String imgUrl;
    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String phone;
    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String email;

}
